﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdvMain.ascx.cs" Inherits="AdminX_Adv_AdvMain" %>
<div id="tab1" class="tab_content"> 
    <div class="load_page">                         
        <div class="search-top">
            <ul>
                <li class="title-search-top"><label>  <asp:Label ID="lblCategory" runat="server" Text="Label"></asp:Label></label></li>
                <li><asp:DropDownList ID="ddlPosition" runat="server" CssClass="smalls" AutoPostBack="True" onselectedindexchanged="ddlPosition_SelectedIndexChanged1" ></asp:DropDownList></li>
                <li class="bt-addnew"><asp:LinkButton ID="btnAddnew" runat="server" CssClass="uibutton icon add" ToolTip="Add News" onclick="btnAddnew_Click"></asp:LinkButton></li>     
            </ul>                
        </div>

        <form action=""> 
		<div class="tableName">
			<h6><asp:Label ID="lblTotalRecord" runat="server" Text="Label"></asp:Label></h6>
                            
            <asp:Repeater ID="RpAdv" runat="server" onitemcommand="RpAdv_ItemCommand" onitemdatabound="RpAdv_ItemDataBound">
                <HeaderTemplate>
                    <table class="display data_table2" >
                                   
	                    <thead>
		                    <tr>          
			                    <th><div class="th_wrapp">Đối tác</div></th>
			                    <th><div class="th_wrapp">Logo</div></th>
			                    <th><div class="th_wrapp">Vị trí hiển thị</div></th>
			                    <th><div class="th_wrapp">Tình trạng</div></th>
                                <th><div class="th_wrapp">Tùy chọn</div></th>
		                    </tr>
	                    </thead>

                        <tbody>
                            </HeaderTemplate>
                                <ItemTemplate>
     	                            <tr class="odd gradeX">
                                                        
			                            <td><asp:Label ID="lblPartner"   runat="server"></asp:Label></td>

			                            <td>
                                            <div style="padding:5px; "><asp:Image  ID="imgImage"  runat="server" Width="105px" Height ="70px" BorderWidth="2px" BorderColor="gray"/></div>
                                        </td>
			                            <td><asp:Label ID="lblPosition" runat="server"></asp:Label></td>
                                            
			                            <td> 
                                            <asp:LinkButton ID="lnkActive" runat="server" Text="Hoạt động" CommandName="Active" CausesValidation="false" ForeColor ="green"></asp:LinkButton>
                                            <asp:LinkButton ID="lnkInactive" runat="server" Text="Không hoạt động" CommandName="Inactive" CausesValidation="false" ForeColor="red"  ></asp:LinkButton>
                                        </td>
			                            <td class="center">
                                            <span class="tip" >
                                                <asp:LinkButton ID="lnkEdit" runat="server" ToolTip="Edit" CommandName="Edit"><img src="Images/Layout/icon/gray_18/gear.png"></asp:LinkButton>
                                            </span> 
                                            <span class="tip" >
                                                <asp:LinkButton ID="lnkDelete" runat="server" ToolTip="Delete" CommandName="Delete"><img src="Images/Layout/icon/gray_18/trash_can.png"></asp:LinkButton>
                                            </span>
                                        </td>
		                            </tr>                              	
	                            </ItemTemplate>
	                        <FooterTemplate>
	                    </tbody>

                    </table>
                </FooterTemplate>
            </asp:Repeater>
		</div>
	</form>

    </div>
</div>